<template>
  <div>
    <el-header style="text-align: right; font-size: 15px">
            <span>
                欢迎使用学籍管理系统-查看成绩
            </span>
    </el-header>
    <el-table
            :data="tableData"
            border
            style="width: 100%">

      <el-table-column
              fixed
              prop="c_name"
              label="课程名称"
              width="100%">
      </el-table-column>


      <el-table-column
              fixed
              prop="score0_59"
              label="不及格人数"
              width="100%">
      </el-table-column>
      <el-table-column
              fixed
              prop="b_score0_59"
              label="占比"
              width="50%">
      </el-table-column>



      <el-table-column
              fixed
              prop="score60_69"
              label="60-69人数"
              width="100%">
      </el-table-column>
      <el-table-column
              fixed
              prop="b_score60_69"
              label="占比"
              width="50%">
      </el-table-column>


      <el-table-column
            fixed
            prop="score70_79"
            label="70-79人数"
            width="100%">
      </el-table-column>
     <el-table-column
              fixed
              prop="b_score70_79"
              label="占比"
              width="50%">
      </el-table-column>


      <el-table-column
            fixed
            prop="score80_89"
            label="80-89人数"
            width="100%">
       </el-table-column>
      <el-table-column
              fixed
              prop="b_score80_89"
              label="占比"
              width="50%">
      </el-table-column>


      <el-table-column
              fixed
              prop="score90_100"
              label="90-100人数"
              width="100%">
      </el-table-column>
      <el-table-column
              fixed
              prop="b_score90_100"
              label="占比"
              width="50%">
      </el-table-column>


    </el-table>
    <el-form>
      <el-form-item>
        <el-button  type="primary" @click="backForm('formLabelAlign')">返 回</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  export default {
    methods: {
      backForm(formName) {
        this.$router.push('/Page4')
      }
    },
    created() {
      const _this = this
      axios.get('http://localhost:8181/score_num/getNum/'+this.$route.query.id).then(function (resp) {
        _this.tableData = resp.data
      })
    },
    data() {
      return {
        total: null,
        tableData: null
      }
    }
  }
</script>